package com.neusoft.yiyang.medical.service;

import com.neusoft.yiyang.common.entity.medical.MedicalRecord;
import com.neusoft.yiyang.common.entity.medical.MedicationOrder;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

public interface MedicationOrderService {

    // 创建药物医嘱
    void createMedicationOrder(MedicationOrder medicationOrder);

    // 获取所有药物医嘱
    List<MedicationOrder> getAllMedicationOrders();

    // 根据客户ID获取药物医嘱
    List<MedicationOrder> getMedicationOrdersByCustomerId(Integer customerId);

    // 更新药物医嘱
    void updateMedicationOrder(MedicationOrder medicationOrder);

    // 删除药物医嘱
    void deleteMedicationOrder(Integer medicationOrderId);

    //careTask中的refId查询对应的药物
    MedicationOrder getByMedicalRecordId(Integer medicationOrderId);

    //根据CustomerId获取药物医嘱和药物信息
    List<Map<String, Object>> getMedicationByCustomerId (Integer customerId);
}
